using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class BindOpMobileResponse : GeneratedMessageLite<BindOpMobileResponse, BindOpMobileResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<BindOpMobileResponse, BindOpMobileResponse.Builder>
		{
			private bool resultIsReadOnly;
			private BindOpMobileResponse result;
			protected override BindOpMobileResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override BindOpMobileResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override BindOpMobileResponse DefaultInstanceForType
			{
				get
				{
					return BindOpMobileResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public string Ticket
			{
				get
				{
					return this.result.Ticket;
				}
				set
				{
					this.SetTicket(value);
				}
			}
			public string SmsNo
			{
				get
				{
					return this.result.SmsNo;
				}
				set
				{
					this.SetSmsNo(value);
				}
			}
			public uint NeedSetPwd
			{
				get
				{
					return this.result.NeedSetPwd;
				}
				set
				{
					this.SetNeedSetPwd(value);
				}
			}
			public string Pwd
			{
				get
				{
					return this.result.Pwd;
				}
				set
				{
					this.SetPwd(value);
				}
			}
			public string Username
			{
				get
				{
					return this.result.Username;
				}
				set
				{
					this.SetUsername(value);
				}
			}
			public Builder()
			{
				this.result = BindOpMobileResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(BindOpMobileResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private BindOpMobileResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					BindOpMobileResponse other = this.result;
					this.result = new BindOpMobileResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override BindOpMobileResponse.Builder Clear()
			{
				this.result = BindOpMobileResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override BindOpMobileResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new BindOpMobileResponse.Builder(this.result);
				}
				return new BindOpMobileResponse.Builder().MergeFrom(this.result);
			}
			public override BindOpMobileResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override BindOpMobileResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is BindOpMobileResponse)
				{
					return this.MergeFrom((BindOpMobileResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override BindOpMobileResponse.Builder MergeFrom(BindOpMobileResponse other)
			{
				return this;
			}
			public override BindOpMobileResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override BindOpMobileResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(BindOpMobileResponse._bindOpMobileResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = BindOpMobileResponse._bindOpMobileResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 18u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
						if (num3 == 18u)
						{
							this.result.hasTicket = input.ReadString(ref this.result.ticket_);
							continue;
						}
					}
					else
					{
						if (num3 <= 32u)
						{
							if (num3 == 26u)
							{
								this.result.hasSmsNo = input.ReadString(ref this.result.smsNo_);
								continue;
							}
							if (num3 == 32u)
							{
								this.result.hasNeedSetPwd = input.ReadUInt32(ref this.result.needSetPwd_);
								continue;
							}
						}
						else
						{
							if (num3 == 42u)
							{
								this.result.hasPwd = input.ReadString(ref this.result.pwd_);
								continue;
							}
							if (num3 == 50u)
							{
								this.result.hasUsername = input.ReadString(ref this.result.username_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public BindOpMobileResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public BindOpMobileResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public BindOpMobileResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public BindOpMobileResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public BindOpMobileResponse.Builder SetTicket(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasTicket = true;
				this.result.ticket_ = value;
				return this;
			}
			public BindOpMobileResponse.Builder ClearTicket()
			{
				this.PrepareBuilder();
				this.result.hasTicket = false;
				this.result.ticket_ = "";
				return this;
			}
			public BindOpMobileResponse.Builder SetSmsNo(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSmsNo = true;
				this.result.smsNo_ = value;
				return this;
			}
			public BindOpMobileResponse.Builder ClearSmsNo()
			{
				this.PrepareBuilder();
				this.result.hasSmsNo = false;
				this.result.smsNo_ = "";
				return this;
			}
			public BindOpMobileResponse.Builder SetNeedSetPwd(uint value)
			{
				this.PrepareBuilder();
				this.result.hasNeedSetPwd = true;
				this.result.needSetPwd_ = value;
				return this;
			}
			public BindOpMobileResponse.Builder ClearNeedSetPwd()
			{
				this.PrepareBuilder();
				this.result.hasNeedSetPwd = false;
				this.result.needSetPwd_ = 0u;
				return this;
			}
			public BindOpMobileResponse.Builder SetPwd(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasPwd = true;
				this.result.pwd_ = value;
				return this;
			}
			public BindOpMobileResponse.Builder ClearPwd()
			{
				this.PrepareBuilder();
				this.result.hasPwd = false;
				this.result.pwd_ = "";
				return this;
			}
			public BindOpMobileResponse.Builder SetUsername(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUsername = true;
				this.result.username_ = value;
				return this;
			}
			public BindOpMobileResponse.Builder ClearUsername()
			{
				this.PrepareBuilder();
				this.result.hasUsername = false;
				this.result.username_ = "";
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int TicketFieldNumber = 2;
		public const int SmsNoFieldNumber = 3;
		public const int NeedSetPwdFieldNumber = 4;
		public const int PwdFieldNumber = 5;
		public const int UsernameFieldNumber = 6;
		private static readonly BindOpMobileResponse defaultInstance;
		private static readonly string[] _bindOpMobileResponseFieldNames;
		private static readonly uint[] _bindOpMobileResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasTicket;
		private string ticket_ = "";
		private bool hasSmsNo;
		private string smsNo_ = "";
		private bool hasNeedSetPwd;
		private uint needSetPwd_;
		private bool hasPwd;
		private string pwd_ = "";
		private bool hasUsername;
		private string username_ = "";
		private int memoizedSerializedSize = -1;
		public static BindOpMobileResponse DefaultInstance
		{
			get
			{
				return BindOpMobileResponse.defaultInstance;
			}
		}
		public override BindOpMobileResponse DefaultInstanceForType
		{
			get
			{
				return BindOpMobileResponse.DefaultInstance;
			}
		}
		protected override BindOpMobileResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public string Ticket
		{
			get
			{
				return this.ticket_;
			}
		}
		public string SmsNo
		{
			get
			{
				return this.smsNo_;
			}
		}
		public uint NeedSetPwd
		{
			get
			{
				return this.needSetPwd_;
			}
		}
		public string Pwd
		{
			get
			{
				return this.pwd_;
			}
		}
		public string Username
		{
			get
			{
				return this.username_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.BaseResponse.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasTicket)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.Ticket);
				}
				if (this.hasSmsNo)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.SmsNo);
				}
				if (this.hasNeedSetPwd)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.NeedSetPwd);
				}
				if (this.hasPwd)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.Pwd);
				}
				if (this.hasUsername)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.Username);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private BindOpMobileResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] bindOpMobileResponseFieldNames = BindOpMobileResponse._bindOpMobileResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, bindOpMobileResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasTicket)
			{
				output.WriteString(2, bindOpMobileResponseFieldNames[5], this.Ticket);
			}
			if (this.hasSmsNo)
			{
				output.WriteString(3, bindOpMobileResponseFieldNames[3], this.SmsNo);
			}
			if (this.hasNeedSetPwd)
			{
				output.WriteUInt32(4, bindOpMobileResponseFieldNames[1], this.NeedSetPwd);
			}
			if (this.hasPwd)
			{
				output.WriteString(5, bindOpMobileResponseFieldNames[2], this.Pwd);
			}
			if (this.hasUsername)
			{
				output.WriteString(6, bindOpMobileResponseFieldNames[4], this.Username);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasTicket)
			{
				num ^= this.ticket_.GetHashCode();
			}
			if (this.hasSmsNo)
			{
				num ^= this.smsNo_.GetHashCode();
			}
			if (this.hasNeedSetPwd)
			{
				num ^= this.needSetPwd_.GetHashCode();
			}
			if (this.hasPwd)
			{
				num ^= this.pwd_.GetHashCode();
			}
			if (this.hasUsername)
			{
				num ^= this.username_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			BindOpMobileResponse bindOpMobileResponse = value as BindOpMobileResponse;
			return bindOpMobileResponse != null && (this.hasBaseResponse == bindOpMobileResponse.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(bindOpMobileResponse.baseResponse_))) && (this.hasTicket == bindOpMobileResponse.hasTicket && (!this.hasTicket || this.ticket_.Equals(bindOpMobileResponse.ticket_))) && (this.hasSmsNo == bindOpMobileResponse.hasSmsNo && (!this.hasSmsNo || this.smsNo_.Equals(bindOpMobileResponse.smsNo_))) && (this.hasNeedSetPwd == bindOpMobileResponse.hasNeedSetPwd && (!this.hasNeedSetPwd || this.needSetPwd_.Equals(bindOpMobileResponse.needSetPwd_))) && (this.hasPwd == bindOpMobileResponse.hasPwd && (!this.hasPwd || this.pwd_.Equals(bindOpMobileResponse.pwd_))) && (this.hasUsername == bindOpMobileResponse.hasUsername && (!this.hasUsername || this.username_.Equals(bindOpMobileResponse.username_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<BindOpMobileResponse, BindOpMobileResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<BindOpMobileResponse, BindOpMobileResponse.Builder>.PrintField("ticket", this.hasTicket, this.ticket_, writer);
			GeneratedMessageLite<BindOpMobileResponse, BindOpMobileResponse.Builder>.PrintField("SmsNo", this.hasSmsNo, this.smsNo_, writer);
			GeneratedMessageLite<BindOpMobileResponse, BindOpMobileResponse.Builder>.PrintField("NeedSetPwd", this.hasNeedSetPwd, this.needSetPwd_, writer);
			GeneratedMessageLite<BindOpMobileResponse, BindOpMobileResponse.Builder>.PrintField("Pwd", this.hasPwd, this.pwd_, writer);
			GeneratedMessageLite<BindOpMobileResponse, BindOpMobileResponse.Builder>.PrintField("Username", this.hasUsername, this.username_, writer);
		}
		public static BindOpMobileResponse ParseFrom(byte[] data)
		{
			return BindOpMobileResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private BindOpMobileResponse MakeReadOnly()
		{
			return this;
		}
		public static BindOpMobileResponse.Builder CreateBuilder()
		{
			return new BindOpMobileResponse.Builder();
		}
		public override BindOpMobileResponse.Builder ToBuilder()
		{
			return BindOpMobileResponse.CreateBuilder(this);
		}
		public override BindOpMobileResponse.Builder CreateBuilderForType()
		{
			return new BindOpMobileResponse.Builder();
		}
		public static BindOpMobileResponse.Builder CreateBuilder(BindOpMobileResponse prototype)
		{
			return new BindOpMobileResponse.Builder(prototype);
		}
		static BindOpMobileResponse()
		{
			BindOpMobileResponse.defaultInstance = new BindOpMobileResponse().MakeReadOnly();
			BindOpMobileResponse._bindOpMobileResponseFieldNames = new string[]
			{
				"BaseResponse",
				"NeedSetPwd",
				"Pwd",
				"SmsNo",
				"Username",
				"ticket"
			};
			BindOpMobileResponse._bindOpMobileResponseFieldTags = new uint[]
			{
				10u,
				32u,
				42u,
				26u,
				50u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.BindOpMobileResponse.Descriptor, null);
		}
	}
}
